/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bff.slimserver.musicjukebox.ui.components;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;

/**
 *
 * @author bfindeisen
 */
public class ArtSizeComboBox extends JComboBox {

    private DefaultComboBoxModel sizeModel;

    public ArtSizeComboBox() {
        sizeModel = new DefaultComboBoxModel();
        setModel(sizeModel);
        listSizes();
    }

    private void listSizes() {
        sizeModel.removeAllElements();
        sizeModel.addElement(new Integer(50));
        sizeModel.addElement(new Integer(100));
        sizeModel.addElement(new Integer(150));
        sizeModel.addElement(new Integer(200));
        sizeModel.addElement(new Integer(250));
        sizeModel.addElement(new Integer(300));
        setModel(sizeModel);

    }

    public int getSelectedSize() {
        return (Integer) getSelectedItem();
    }
    
    public void setSize(int size) {
        sizeModel.setSelectedItem(size);
    }
}
